
from app.clipboard_watcher import ClipboadWatcher
from app.server_manager import ServerManager
from app.setting_manager import SettingParser


class OnlineClip(object):

    def __init__(self):
        pass

    def start(self):
        settings = SettingParser().get_settings()

        self.sm = ServerManager(
            settings['host'],
            settings['port'])

        self.cw = ClipboadWatcher()

        self.sm.listen()
        self.cw.watch()

if __name__ == "__main__":
    oc = OnlineClip()
    oc.start()
